\documentclass{minimal}
\begin{document}

\ifnum=1
Hello world!
\else
Bye world!
\fi

\end{document}
